CMAKE_MINIMUM_REQUIRED(VERSION 2.6)

PROJECT(ParallelMLP)

SET(SOURCES
	DeviceExampleSet.cu
	DeviceLayer.cu
	DeviceMLP.cpp
	DeviceOutLayer.cu
)

SET(CMAKE_CXX_FLAGS "-O2")
SET(CUDA_NVCC_FLAGS "-arch=compute_20")

INCLUDE_DIRECTORIES(${CUDA_INCLUDE_DIRS})
CUDA_ADD_LIBRARY(mlp_cuda ${SOURCES})
TARGET_LINK_LIBRARIES(mlp_cuda mlp_serial ${CUDA_LIBRARIES})
